package Singleton.demo8;

import java.io.IOException;
import java.io.InputStream;

public class RuntimeDemo {
    public static void main(String[] args) throws IOException {

        Runtime runtime = Runtime.getRuntime();

        Process exec = runtime.exec("ipconfig");

        InputStream is = exec.getInputStream();

        byte[] bytes = new byte[1024 * 1024 * 100];

        int read = is.read(bytes);

        System.out.println(new String(bytes,0,read,"GBK"));


    }




}
